# nums = [1,2,3,4,5,6]
nums = []
for i in range(5):
    num = input("输入数字")
    nums.append(num)
print(nums)

for i in range(len(nums)-1):
    for j in range(len(nums)-i-1):
        if nums[j] < nums[j+1]: #前一个小于后一个 就交换位置
            nums[j], nums[j+1] = nums[j+1], nums[j]
            print(nums)

print(nums)